package com.jin.webvideo.base.spi;

import com.jin.webvideo.base.spi.exception.InterfaceRunningException;

public abstract class Interface {
    private InterfaceProvider provider;

    public Interface(InterfaceProvider provider) {
        this.provider = provider;
    }

    public InterfaceProvider provider() {
        return provider;
    }

    /**
     * 返回
     * @param param
     * @return
     */
    protected abstract Object run(Object... param) throws InterfaceRunningException;
}
